package com.yumeng.webapp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 以war包形式，运行与外部web容器中
 *
 * @author wxd
 * @date 2024/5/24 下午1:40
 */
@Slf4j
public class YumengServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        log.info("############################################：YumengServletInitializer configure");
        return builder.sources(YumengApplication.class);
    }
}
